package com.pinusmusic.service;

import com.pinusmusic.domain.PageBean;
import com.pinusmusic.domain.ResultInfo;
import com.pinusmusic.domain.Singer;
import com.pinusmusic.domain.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface SingerService {

    boolean addSinger(Singer addSinger);

    void deleteSingerAndMusicBySid(int sid);

    boolean updateSinger(Singer updateSinger);

    Singer findSingerBySid(int sid);

    PageBean<Singer> findSingerByPage(int currentPage,int rows,String singerName);

    void deleteSingers(String[] sids);

    Singer getAddSinger(HttpServletRequest req) throws IOException;

    ResultInfo getUpdateSinger(HttpServletRequest req) throws IOException;

    void singerDelete(HttpServletRequest req, HttpServletResponse resp);

    PageBean<Singer> findSingersByName(int currentPage, int rows, String name);
}
